# 序列化业务类型数据
from rest_framework import serializers

from apps.business.models import Business_type_model


class Type_serializer(serializers.ModelSerializer):
    tree_name=serializers.CharField(source='type_name',read_only=True)
    class Meta:
        model = Business_type_model
        fields = "__all__"

